package cn.dglydrpy.study.common.mybatisPlus.injector;/*
 * @author LY_飘涯
 * @date 2021/6/29 20:07
 * @description
 */

import cn.dglydrpy.study.common.mybatisPlus.abstractMethod.FindAll;
import cn.dglydrpy.study.common.mybatisPlus.abstractMethod.FindBaseEntityById;
import com.baomidou.mybatisplus.core.injector.AbstractMethod;
import com.baomidou.mybatisplus.core.injector.DefaultSqlInjector;

import java.util.List;

public class MySqlInjector extends DefaultSqlInjector {

    @Override
    public List<AbstractMethod> getMethodList() {
        List<AbstractMethod> methodList = super.getMethodList();

        // 扩充自定义的方法
        methodList.add(new FindAll());
        methodList.add(new FindBaseEntityById());

        return methodList;
    }
}
